<?php

namespace Module\ErrorPage\Admin\Controller;

use Illuminate\Routing\Controller;
use ModStart\Admin\Layout\AdminConfigBuilder;

class ConfigController extends Controller
{
    public function setting(AdminConfigBuilder $builder)
    {
        $builder->pageTitle('自定义错误页');
        $builder->textarea('ErrorPage_ErrorPage404', '404错误页面HTML代码')
            ->help('404错误页面指页面不存在的展示页面');
        $builder->textarea('ErrorPage_ErrorPage500', '500错误页面HTML代码')
            ->help('500错误页面指页面程序处理报错的展示页面');
        $builder->formClass('wide-lg');
        return $builder->perform();
    }
}
